package com.example.springdataes.repository;

import com.example.springdataes.index.ChenkeIndex;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * 操作chenkeindex索引库
 */
public interface EsChenkeIndex extends ElasticsearchRepository<ChenkeIndex, Long> {

    List<ChenkeIndex> findByStatus(int status);

    List<ChenkeIndex> findByStatusNot(int status);

    List<ChenkeIndex> findByCreateTimeBetween(String start, String end);

}
